import pybind11
import  my_extensions

mymodule = my_extensions.load(name="MyModule1",
            sources=[
                "sub.cpp",
                "sub2.cpp",
                "bind_all.cpp"
            ],
            extra_include_paths=[pybind11.get_include()],
            extra_cflags=["-g"],
            verbose=True,
        )
print(mymodule)
table = mymodule.dclLlmLayerBlockTable()

# 读写属性
table.blockIds = [1, 2, 3]          # 自动转换为 std::vector<uint32_t>
table.slotMapping = [10, 20, 30]    # 同上

print(table.blockIds)  # 输出: [1, 2, 3]
print(table.slotMapping)

mymodule.Test([1, 1, 2, 3, 5, 8, 13, 21], 10)
